home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIJVMManager.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  124 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. #include "nsISupports.idl"
  39.  
  40. %{C++
  41. #ifndef JNI_H
  42. #include "jni.h"
  43. #endif
  44.  
  45. /*
  46.  Java VM Plugin Manager
  47.  This interface defines additional entry points that are available
  48.  to JVM plugins for browsers that support JVM plugins.
  49. */
  50. /*
  51. #define NS_IJVMMANAGER_IID                           \
  52. { / * a1e5ed50-aa4a-11d1-85b2-00805f0e4dfe * /       \
  53.     0xa1e5ed50,                                      \
  54.     0xaa4a,                                          \
  55.     0x11d1,                                          \
  56.     {0x85, 0xb2, 0x00, 0x80, 0x5f, 0x0e, 0x4d, 0xfe} \
  57. }
  58. */
  59.  
  60. #define NS_JVMMANAGER_CID                            \
  61. { /* 38e7ef10-58df-11d2-8164-006008119d7a */         \
  62.     0x38e7ef10,                                      \
  63.     0x58df,                                          \
  64.     0x11d2,                                          \
  65.     {0x81, 0x64, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
  66. }
  67.  
  68. %}
  69.  
  70. interface nsIJVMPlugin;
  71. interface nsISecureEnv;
  72. interface nsIPrincipal;
  73. native JNIEnv(JNIEnv *);
  74.  
  75. [scriptable, uuid(a1e5ed50-aa4a-11d1-85b2-00805f0e4dfe)]
  76. interface nsIJVMManager : nsISupports {
  77.  
  78. %{C++
  79.       //    NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJVMMANAGER_IID)
  80.     NS_DEFINE_STATIC_CID_ACCESSOR(NS_JVMMANAGER_CID)
  81. %}
  82.  
  83.     /**
  84.      * Creates a proxy JNI with an optional secure environment (which can be NULL).
  85.      * There is a one-to-one correspondence between proxy JNIs and threads, so
  86.      * calling this method multiple times from the same thread will return
  87.      * the same proxy JNI.
  88.      */
  89.     [noscript] void createProxyJNI(in nsISecureEnv secureEnv, out JNIEnv outProxyEnv);
  90.  
  91.     /**
  92.      * Returns the proxy JNI associated with the current thread, or NULL if no
  93.      * such association exists.
  94.      */
  95.     [noscript] void getProxyJNI(out JNIEnv outProxyEnv);
  96.  
  97.     /**
  98.      * Called from Java Console menu item.
  99.      */
  100.  
  101.     void showJavaConsole();
  102.  
  103.     /**
  104.      * isAllPermissionGranted [Deprecated Sep-10-2000]
  105.      */
  106.  
  107.     boolean isAllPermissionGranted(in string lastFingerprint,in string lastCommonName,
  108.                                 in string rootFingerprint,in string rootCommonName);
  109.  
  110.     /**
  111.      * isAppletTrusted
  112.      */
  113.  
  114.     nsIPrincipal isAppletTrusted(in string aRSABuf, in PRUint32 aRSABufLen, 
  115.                          in string aPlaintext, in PRUint32 aPlaintextLen,    
  116.                          out boolean isTrusted);
  117.  
  118.     /**
  119.      * The JavaEnabled variable to see if Java is Enabled or not
  120.      */
  121.  
  122.     readonly attribute boolean JavaEnabled;
  123. };
  124.